<?php

namespace app\admin\model;

use think\Model;
use app\admin\library\traits\Translateable;

/**
 * MenuRule 模型
 * @controllerUrl 'authMenu'
 */
class MenuRule extends Model
{
    use Translateable;

    protected $translatable = ['title'];

    protected $autoWriteTimestamp = 'int';

    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function translations()
    {
        return $this->hasMany(MenuRuleTranslation::class,'menu_rule_id');
    }
}